package com.wxsoft.java.demo05.jackson;

import java.util.List;

public class MemberEntity<T> {
    private long state;
    private String msg;
    private String actionType;
    private String dataType;
    private List<T> data;
    private long total;

    public MemberEntity() {
        super();
    }

    public MemberEntity(long state, String msg, String actionType, String dataType, List<T> data) {
        this.state = state;
        this.msg = msg;
        this.actionType = actionType;
        this.dataType = dataType;
        this.data = data;
    }

    @Override
    public String toString() {
        return "MemberEntity{" +
                "state=" + state +
                ", msg='" + msg + '\'' +
                ", actionType='" + actionType + '\'' +
                ", dataType='" + dataType + '\'' +
                ", data=" + data +
                '}';
    }

    public void setState(long state) {
        this.state = state;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public long getState() {
        return state;
    }

    public String getMsg() {
        return msg;
    }

    public String getActionType() {
        return actionType;
    }

    public String getDataType() {
        return dataType;
    }

    public List<T> getData() {
        return data;
    }

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}
}
